{{ await Mode("TPL").Render("@"+KUO.CLASS+"/"+TPLtemp+"/head",KUO,THIS) }}
<div class="kuolist">
    <div class="layui-container ">
        {{#
            let $WWH = {'subclass IN':await THIS.TYPE_BAOHAN(THIS.$features.configure['分类id'][0]?THIS.$features.configure['分类id'][0]:0),'atime >': strtotime(Mode("Tools").Date("Y-m-d")),'off':2}; 
            let $MEYE = 18;
            let $游戏数据 = await  THIS.CENTER_select($WWH,"sortsize desc,id desc",($MEYE+','+KUO.PAGE)  );
            let $DB = await db('cms_content');
            let $TOTAL =  await $DB.Where($WWH).Total();
            let gengxin = true;
            if(!$游戏数据){
                $WWH = {'subclass IN':await THIS.TYPE_BAOHAN(THIS.$features.configure['分类id'][0]?THIS.$features.configure['分类id'][0]:0),'off':2}; 
                $游戏数据 = await  THIS.CENTER_select($WWH,"sortsize desc,recommend desc",18  );
                $TOTAL =  $游戏数据 ? $游戏数据.length:0;
                gengxin = false;
            }
            
        }}
        <div class="kuolistnav">
            {{# if(gengxin){ }}
            <p class="youbian" style="font-size:18px;">今天更新了 <span class="tishi">{{ $TOTAL }}</span>部, 持续更新中...</p>
            {{# }else{ }}
            <p class="youbian" style="font-size:18px;">最新推荐 <span class="tishi">{{ $TOTAL }}</span>部</p>
            {{# } }}
        </div>
        <div class="layui-row layui-col-space15"> 

            {{#

                
          
                if( $游戏数据 ){
                    for(let $ii in $游戏数据 ){
                        let $eli = $游戏数据 [$ii ];
                        let $eliurl = KuoLink([ KUO.CLASS, $eli['url'] ]);
                        
                }}
    
                <div class="layui-col-md2 layui-col-xs6 kuolistbody">
                    <div class="tupian">
                        <a href="{{$eliurl}}"><img src="{{CDNHOST}}Tpl/cms/manhua/image/loadimg.png" lay-src="{{pichttp($eli.photo)}}" class="image"></img>
                            {{# if($eli.remarks && $eli.remarks != ""){ }}
                            <span class="jiaobiao"> {{$eli.remarks}}</span>
                            {{# } }}
                        </a>
                    </div>
                    <div class="biaoti">
                       
                        <a href="{{$eliurl}}">{{$eli.name}}</a>
                    </div>
                    <div class="gengxin">
                        更至：<span class="zuixin">{{$eli.char1}}</span>
                    </div>
                    <div class="renqi">
                        人气：{{$eli.popularity}}
                    </div>
                    
                </div>
                    {{#
                    }   }else{  }}
                        <div class="Nodata">
                            没有相关数据
                        </div>
                    {{# } }}

        </div>


        <div class="layui-clear"></div>

        {{#

            if($TOTAL > $MEYE){
        }}  <div class="center">
                    <div class="pageddd">{{ Mode("Tools").Fenye( $MEYE , $TOTAL  , 5 , KUO.PAGE ,KuoLink([ KUO.CLASS, KUO.$DATA['url'] ],2) , WebExt ) }} 
                    <div  style="clear:both;"></div>
                    </div>
                </div>
        {{# } }}


    </div>
</div>

{{ await Mode("TPL").Render("@"+KUO.CLASS+"/"+TPLtemp+"/foot",KUO,THIS) }}
<script>
var height = 0;
$(function(){
   
  layui.flow.lazyimg(); 
});
</script>